package ch8.Fly;
//飞机
public class Plane implements Fly {
    private String name;

    public void  takeOff(){
        System.out.println("加速起飞");
    }
    @Override
    public void fly() {
        System.out.println(this.name+"从合肥新桥机场飞往北京。");
    }

    public Plane(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
